package br.com.amadeus.android.service;

import br.com.amadeus.android.activities.course.goal.HomeGoalActivity;
import br.com.amadeus.android.util.SchedulerSyncronize;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class BroadcastHomeGoalActivity extends BroadcastReceiver {

	@Override
	public void onReceive(Context ctx, Intent intent) {
		
		Intent it = new Intent(ctx, HomeGoalActivity.class);		
		Bundle basket = new Bundle();
		basket.putInt("course_id", SchedulerSyncronize.parameterToBroadcast);
		it.putExtras(basket);
		it.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		ctx.startActivity(it);

	}

}
